import cloudbase from "@cloudbase/js-sdk";
import cloudConfig from 'configs/cloudset'
import * as lib from "./lib";
import callCloudBase from './callcloud'

const app = cloudbase.init({ env: cloudConfig.envid });
const auth = app.auth();
const db = app.database();
const callCloud = callCloudBase(app, lib)

module.exports = {
  app,
  auth,
  cloudbase,
  db,
  cloudConfig,
  lib,
  callCloud
}